package com.tpod.taxi.entity;

import org.json.JSONException;
import org.json.JSONObject;

import kds.business.BusinessObject;

public class City extends BusinessObject{

	private String name;
	private int id;
	private int code;
 
	

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public int getId() {
		return id;
	}

	public void setId(int id) {
		this.id = id;
	}

	public int getCode() {
		return code;
	}

	public void setCode(int code) {
		this.code = code;
	}

	@Override
	public City valueOfJSON(JSONObject arg0) throws JSONException {
		// TODO Auto-generated method stub
		this.setId(arg0.getInt("id"));
		this.setName(arg0.getString("name"));
		return this;
	}

}
